public class YearMonth {

    private int Year;
    private int Month;

    public YearMonth(int year, int month) {
        this.Year=year;
        this.Month=month;

    }
    public YearMonth(String yearMonth){
        this(Integer.parseInt(yearMonth.substring(0,4)),
                Integer.parseInt(yearMonth.substring(4,6)));
    };

    public int getYear() {
        return Year;
    }

    public int getMonth() {
        return Month;
    }
}
